package org.jiuling.aliyun.sms.convert;

import org.jiuling.aliyun.sms.model.DeleteSmsSignResponseModel;

/**
 * 删除短信签名
 * @author 紫灵
 * @date 2023年02月20日 16时51分00秒
 */
public class DeleteSmsSignResponseConvert {

    /** 删除短信签名响应转换 */
    private DeleteSmsSignResponseConvert(){}

    /**
     * 内容转模型
     * @param deleteSmsSignResponseBody 删除短信签名响应内容
     * @return 删除短信签名响应模型
     */
    public static DeleteSmsSignResponseModel bodyToModel(com.aliyun.sdk.service.dysmsapi20170525.models.DeleteSmsSignResponseBody deleteSmsSignResponseBody){
        DeleteSmsSignResponseModel deleteSmsSignResponseModel = new DeleteSmsSignResponseModel();
        deleteSmsSignResponseModel.setSignName(deleteSmsSignResponseBody.getSignName());
        deleteSmsSignResponseModel.setCode(deleteSmsSignResponseBody.getCode());
        deleteSmsSignResponseModel.setMessage(deleteSmsSignResponseBody.getMessage());
        deleteSmsSignResponseModel.setRequestId(deleteSmsSignResponseBody.getRequestId());
        return deleteSmsSignResponseModel;
    }

    /**
     * 内容转模型
     * @param deleteSmsSignResponseBody 删除短信签名响应内容
     * @return 删除短信签名响应模型
     */
    public static DeleteSmsSignResponseModel bodyToModel(com.aliyun.dysmsapi20170525.models.DeleteSmsSignResponseBody deleteSmsSignResponseBody){
        DeleteSmsSignResponseModel deleteSmsSignResponseModel = new DeleteSmsSignResponseModel();
        deleteSmsSignResponseModel.setSignName(deleteSmsSignResponseBody.getSignName());
        deleteSmsSignResponseModel.setCode(deleteSmsSignResponseBody.getCode());
        deleteSmsSignResponseModel.setMessage(deleteSmsSignResponseBody.getMessage());
        deleteSmsSignResponseModel.setRequestId(deleteSmsSignResponseBody.getRequestId());
        return deleteSmsSignResponseModel;
    }

}
